package com.talent.jiwen.training;

import android.content.Context;
import android.content.Intent;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;

import com.talent.jiwen.R;
import com.talent.jiwen.base.BaseActivity;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * Created by qyqx on 2018/7/2.
 */

public class TrainingActivity extends BaseActivity {

    @BindView(R.id.trainingIv)
    ImageView trainingIv;
    @BindView(R.id.startTrainingLayout)
    RelativeLayout startTrainingLayout;
    @BindView(R.id.historyIv)
    ImageView historyIv;
    @BindView(R.id.historyLayout)
    RelativeLayout historyLayout;

    @Override
    protected int provideContentViewId() {
        return R.layout.activity_training;
    }

    @Override
    public String titleName() {
        return getString(R.string.training);
    }

    @Override
    protected void initData() {

    }

    @OnClick({R.id.startTrainingLayout, R.id.historyLayout})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.startTrainingLayout:
                TrainingSelectActivity.startTrainingSelectActivity(TrainingActivity.this);
                break;
            case R.id.historyLayout:
                break;
        }
    }


    /**启动该页面
     *
     * @param context
     */
    public static void startTrainingActivity(Context context){
        Intent intent = new Intent();
        intent.setClass(context , TrainingActivity.class);
        context.startActivity(intent);
    }
}
